<?php
class CCategoryModel extends CTableModel {
	
	public $primaryKey = 'cat_id';
	
	public function getCategories() {
		return $this->findAll('*', array('cat_is_show', 1), 'cat_sort_order ASC');		
	}
}
